#ifndef GITEEISSUES_H
#define GITEEISSUES_H

#include <wiki/wiki.h>

class GiteeIssues : public Wiki
{
public:
    GiteeIssues();

    GiteeIssues(const QString &m_owner, const QString &m_repo)
        : m_owner(std::move(m_owner))
        , m_repo(std::move(m_repo)) {}
    // Wiki interface
public:
    WIKI_AUTOLOAD
    WIKI_AUTOLOAD_FIRST
    WIKI_USE_LIST
    WIKI_USE_URL

    QList<QListWidgetItem *> searching_item(const QString &text) override;
    QString content_item(const QListWidgetItem *item) override;

private:
    QVariantList m_list;
    QString m_owner;
    QString m_repo;
};

#endif // GITEEISSUES_H
